﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ChangePassword.aspx.cs" Inherits="Account_ChangePassword" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script type="text/javascript">
    function ChangeOK() {
        alert("密码已修改成功");
        location.href = "../Default.aspx";
    }
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        修改密码
    </h2>
    <p>
        使用下面的表单修改您的密码。
    </p>
    <p>
        密码要求长度为4~16位之间。
    </p>
    <p>
        <asp:Label ID="ErrorMessage" runat="server" Text="" ForeColor="#CC0000"></asp:Label>
    </p>    
    <div class="accountInfo">
        <fieldset class="changePassword">
            <legend>帐户</legend>
            <p>
                <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">原有密码:</asp:Label>
                <asp:TextBox ID="CurrentPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">新的密码:</asp:Label>
                <asp:TextBox ID="NewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">重复新密码:</asp:Label>
                <asp:TextBox ID="ConfirmNewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
            </p>
        </fieldset>
        <p class="submitButton">
            <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                Text="取消" onclick="CancelPushButton_Click" />
            <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                Text="修改密码" ValidationGroup="ChangeUserPasswordValidationGroup" 
                onclick="ChangePasswordPushButton_Click" />
        </p>
    </div>
</asp:Content>
